package com.whpost.admin.controller.zhdt;

import com.whpost.admin.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/zhdt/wdzb")
public class ZhdtWdzbController extends BaseController {

    public ZhdtWdzbController() {
        super();
        setRtnPath("zhdt/wdzb");
    }

    @RequestMapping(value ="/add_bj")
    public String add_bj(String name, String jd,String wd,String lx, String dqwd,Model model){
        model.addAttribute("name", name);
        model.addAttribute("lx", lx);
        model.addAttribute("jd", jd);
        model.addAttribute("wd", wd);
        model.addAttribute("dqwd", dqwd);
        return "zhdt/wdzb/add_bj";
    }

    @RequestMapping(value ="/add_jg")
    public String add_jg(String name, String jd,String wd,String lx, Model model){
        model.addAttribute("name", name);
        model.addAttribute("lx", lx);
        model.addAttribute("jd", jd);
        model.addAttribute("wd", wd);
        return "zhdt/wdzb/add_jg";
    }

}
